Function Reference
_AD_GetLastADSIError
Retrieve the calling thread's last ADSI error code value.
Parameters
Return Value
Success: A one-based array containing the following values:
1 - ADSI error code (decimal)
2 - Unicode string that describes the error
3 - name of the provider that raised the error
4 - Win32 error code extracted from element[2]
5 - description of the Win32 error code as returned by _WinAPI_FormatMessage
Failure: "", sets @error to the return value of DLLCall
Remarks
This and more errors will be handled (error codes are in hex):
525 - user not found
52e - invalid credentials
530 - not permitted to logon at this time
532 - password expired
533 - account disabled
701 - account expired
773 - user must reset password
Related
See Also
http://msdn.microsoft.com/en-us/library/cc231199(PROT.10).aspx (Win32 Error Codes), http://forums.sun.com/thread.jspa?threadID=703398